<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="assets/iconfont.css">
</head>

<body>

    <div class="card">
        <div class="header">
            <img src="avatar.jfif" alt="">
            <h2>Someone Famous<br><span>WebSite Designer</span></h2>
        </div>
        <ul class="content">
            <li>
                <i class="iconfont icon-home-color"></i>Edit Profile
            </li>
            <li>
                <i class="iconfont icon-shoujihaoma"></i>Inbox
            </li>
            <li>
                <i class="iconfont icon-naozhong"></i>Settings
            </li>
            <li>
                <i class="iconfont icon-tongzhi"></i>Support
            </li>
            <li>
                <i class="iconfont icon-kefu"></i>Logout
            </li>
        </ul>

        <div class="switch">
            <i class="iconfont icon-arrow-down
            "></i>
        </div>

    </div>

    <script>
        let card = document.querySelector('.card');
        let switchButton = document.querySelector('.switch');

        switchButton.addEventListener('click', function() {
            card.classList.toggle('active');
            switchButton.classList.toggle('active');
        })
    </script>


</body>

</html>